from django.conf.urls import url

from main.views.subscription import AllSubscriptionList,\
    SubscriptionFollowerList
from main.views.message import SubscriptionMessages

urls = [
    # 获取所有的公众号列表(get)
    url(r'^$', AllSubscriptionList.as_view(), name='list'),
    # 获取公众号关注者列表(get)
    url(r'^(?P<subscription_id>[0-9]+)/followers/$', 
        SubscriptionFollowerList.as_view(), name='subscription_followers'),
    # 获取与公众号相关的消息(get)/向关注者发送消息(post)
    url(r'^(?P<subscription_id>[0-9]+)/messages/$',
        SubscriptionMessages.as_view(), name='subscription_messages'),
]
